Graphics.DrawRoundRect Method

Draws the outline of a rounded rectangle in the current color. X and Y are the coordinates of the top-left corner.

Syntax

Graphics.DrawRoundRect X, Y, Width, Height, ArcWidth, ArcHeight

Parameters

X

Integer

Y

Integer

Width

Integer

Height

Integer

ArcWidth

Integer

ArcHeight

Integer

Notes

Width and Height specify the size of the round rectangle. ArcWidth and ArcHeight control the shape of the corners in the horizontal and vertical axes, respectively. They are the distance (pixels) from the corner at which the arc begins. Setting them to zero results in a rectangle with sharp corners.